import request from '@/utils/request'

// 查询天气概要列表
export function listSynopsis(query) {
  return request({
    url: '/snowRemoving/synopsis/list',
    method: 'get',
    params: query
  })
}

// 查询天气概要详细
export function getSynopsis(id) {
  return request({
    url: '/snowRemoving/synopsis/' + id,
    method: 'get'
  })
}

// 新增天气概要
export function addSynopsis(data) {
  return request({
    url: '/snowRemoving/synopsis',
    method: 'post',
    data: data
  })
}

// 修改天气概要
export function updateSynopsis(data) {
  return request({
    url: '/snowRemoving/synopsis',
    method: 'put',
    data: data
  })
}

// 删除天气概要
export function delSynopsis(id) {
  return request({
    url: '/snowRemoving/synopsis/' + id,
    method: 'delete'
  })
}
